const _0xb4f5 = ['length', '51mkPJoI', 'Shape', '数据不可为空', '2741047wUCKWC', 'moveTo', 'coordinates', 'children', 'computeLineDistances', 'Vector3', 'createLine', '#001a54', 'Line2', 'rotation', 'error', 'initChinaMap', 'userData', 'selectedObjects', 'Mesh', '291TNrisz', '#1487f7', 'THREE', 'Group', 'quadraticCurveTo', 'push', 'DoubleSide', 'resolution', 'ExtrudeGeometry', '451927rqODsl', 'lnglatToMector', 'set', 'vector3', '1534756gUUHJN', '411896kgOxhy', '209DRDWPB', 'concat', 'map', 'geometry', 'createModel', 'lineTo', '11170qRdhcP', 'LineGeometry', 'forEach', '19UbPWdN', 'features', 'add', 'height', 'mapData', 'MeshPhongMaterial', 'setPositions', '2887QDzEOx'];
const _0x3ab9ef = _0x173d;
(function (_0x56651b, _0x489145) {
  const _0x4e33d2 = _0x173d;
  while (!![]) {
    try {
      const _0x308c90 = -parseInt(_0x4e33d2(0x99)) * -parseInt(_0x4e33d2(0x92)) + -parseInt(_0x4e33d2(0xb6)) + -parseInt(_0x4e33d2(0x89)) * parseInt(_0x4e33d2(0xad)) + -parseInt(_0x4e33d2(0x87)) + parseInt(_0x4e33d2(0x8f)) * parseInt(_0x4e33d2(0x9b)) + -parseInt(_0x4e33d2(0x88)) + parseInt(_0x4e33d2(0x9e));
      if (_0x308c90 === _0x489145) break;
      else _0x56651b['push'](_0x56651b['shift']());
    } catch (_0x67eab4) {
      _0x56651b['push'](_0x56651b['shift']());
    }
  }
}(_0xb4f5, 0xdd3bc));
import _0xb4731f from './ThreejsOutlinePass';
const THREE = window[_0x3ab9ef(0xaf)];

function _0x173d(_0x5d2d99, _0x3f4018) {
  return _0x173d = function (_0xb4f5c, _0x173df4) {
    _0xb4f5c = _0xb4f5c - 0x84;
    let _0xd0f2d = _0xb4f5[_0xb4f5c];
    return _0xd0f2d;
  }, _0x173d(_0x5d2d99, _0x3f4018);
}
class ThreejsGuangxiMap extends _0xb4731f {
  constructor(_0x550995) {
    const _0xdc2a4d = _0x3ab9ef;
    super();
    const {
      mapData: _0x184cb4
    } = _0x550995;
    this[_0xdc2a4d(0x96)] = _0x184cb4, this[_0xdc2a4d(0xab)] = [], this[_0xdc2a4d(0xa9)]();
  } [_0x3ab9ef(0xa9)]() {
    const _0x39da12 = _0x3ab9ef;
    if (!this[_0x39da12(0x96)]) return console[_0x39da12(0xa8)](_0x39da12(0x9d)), ![];
    this['mapData'][_0x39da12(0x93)][_0x39da12(0x91)](_0x5c0c06 => {
      const _0x71ceec = _0x39da12;
      _0x5c0c06[_0x71ceec(0x86)] = [], _0x5c0c06[_0x71ceec(0x8c)][_0x71ceec(0xa0)][_0x71ceec(0x91)]((_0x2a2568, _0x5af885) => {
        const _0x5c6186 = _0x71ceec;
        _0x5c0c06[_0x5c6186(0x86)][_0x5af885] = [], _0x2a2568[_0x5c6186(0x91)]((_0x5aa699, _0x3bf79b) => {
          const _0x49a661 = _0x5c6186;
          if (_0x5aa699[0x0] instanceof Array) _0x5c0c06['vector3'][_0x5af885][_0x3bf79b] = [], _0x5aa699[_0x49a661(0x91)](_0x3e43ce => {
            const _0x240970 = _0x49a661,
              _0x2ecf6e = this[_0x240970(0x84)](_0x3e43ce);
            _0x5c0c06[_0x240970(0x86)][_0x5af885][_0x3bf79b][_0x240970(0xb2)](_0x2ecf6e);
          });
          else {
            const _0x195e6e = this[_0x49a661(0x84)](_0x5aa699);
            _0x5c0c06[_0x49a661(0x86)][_0x5af885][_0x49a661(0xb2)](_0x195e6e);
          }
        });
      });
    });
    const _0x328f80 = new THREE[(_0x39da12(0xb0))](),
      _0x283236 = new THREE[(_0x39da12(0xb0))]();
    this[_0x39da12(0x96)]['features']['forEach'](_0x1e3f90 => {
      const _0x2ccac2 = _0x39da12,
        _0x45985f = new THREE[(_0x2ccac2(0xb0))]();
      _0x1e3f90[_0x2ccac2(0x86)][_0x2ccac2(0x91)](_0x2243ff => {
        const _0x24ebe0 = _0x2ccac2;
        if (_0x2243ff[0x0][0x0] instanceof Array) _0x2243ff[_0x24ebe0(0x91)](_0xc9bf59 => {
          const _0x2b5c44 = _0x24ebe0,
            _0x538c13 = this[_0x2b5c44(0x8d)](_0xc9bf59),
            _0x449744 = this[_0x2b5c44(0xa4)](_0xc9bf59, this['width'], this[_0x2b5c44(0x95)]);
          _0x283236[_0x2b5c44(0x94)](_0x449744), _0x45985f[_0x2b5c44(0x94)](_0x538c13);
        });
        else {
          const _0x249c12 = this[_0x24ebe0(0x8d)](_0x2243ff),
            _0x7e4139 = this[_0x24ebe0(0xa4)](_0x2243ff, this['width'], this[_0x24ebe0(0x95)]);
          _0x283236[_0x24ebe0(0x94)](_0x7e4139), _0x45985f['add'](_0x249c12);
        }
      }), _0x328f80[_0x2ccac2(0x94)](_0x45985f);
    }), _0x328f80[_0x39da12(0xa7)]['x'] = Math['PI'] * 0.5, _0x283236[_0x39da12(0xa7)]['x'] = Math['PI'] * 0.5, this[_0x39da12(0xab)] = [], _0x328f80[_0x39da12(0xa1)] && _0x328f80[_0x39da12(0xa1)][_0x39da12(0x91)](_0x20db73 => {
      const _0x285e9a = _0x39da12;
      _0x20db73['children'][_0x285e9a(0x91)](_0x4abbba => {
        const _0x383f01 = _0x285e9a;
        this[_0x383f01(0xab)][_0x383f01(0xb2)](_0x4abbba);
      });
    }), this['outlinePass']['selectedObjects'] = this['selectedObjects'], this['scene'][_0x39da12(0x94)](_0x328f80), this['scene'][_0x39da12(0x94)](_0x283236);
  } ['createLine'](_0x2b2588, _0x33965d, _0x1304ae) {
    const _0x62ab2b = _0x3ab9ef,
      _0x1fe5b9 = _0x2b2588[_0x62ab2b(0x8b)](_0x12cb58 => {
        const _0x53095e = _0x62ab2b,
          [_0x4293cc, _0x534df1] = _0x12cb58;
        return new THREE[(_0x53095e(0xa3))](_0x4293cc, _0x534df1, 0x3);
      }),
      _0x336362 = _0x1fe5b9['reduce']((_0x5cfa10, _0x4db913) => {
        const _0x566355 = _0x62ab2b;
        return _0x5cfa10[_0x566355(0x8a)](_0x4db913['x'], _0x4db913['y'], _0x4db913['z']);
      }, []),
      _0xbfcfe0 = new THREE[(_0x62ab2b(0x90))]();
    _0xbfcfe0[_0x62ab2b(0x98)](_0x336362);
    const _0x1f0943 = new THREE['LineMaterial']({
      'color': _0x62ab2b(0xae),
      'linewidth': 0x3
    });
    _0x1f0943[_0x62ab2b(0xb4)][_0x62ab2b(0x85)](_0x33965d, _0x1304ae);
    const _0x1b7864 = new THREE[(_0x62ab2b(0xa6))](_0xbfcfe0, _0x1f0943);
    return _0x1b7864[_0x62ab2b(0xa2)](), _0x1b7864[_0x62ab2b(0xa7)]['x'] = -Math['PI'] * 0.5, _0x1b7864;
  } [_0x3ab9ef(0x8d)](_0x39356e, _0x5703ea) {
    const _0x483b57 = _0x3ab9ef,
      _0x4e2582 = new THREE[(_0x483b57(0x9c))]();
    _0x39356e['forEach']((_0x10445e, _0x1e176d) => {
      const _0x3eba1e = _0x483b57,
        [_0x1e5ef7, _0x1c3fba] = _0x10445e;
      if (_0x1e176d === 0x0) _0x4e2582[_0x3eba1e(0x9f)](_0x1e5ef7, _0x1c3fba);
      else _0x1e176d === _0x39356e[_0x3eba1e(0x9a)] - 0x1 ? _0x4e2582[_0x3eba1e(0xb1)](_0x1e5ef7, _0x1c3fba, _0x1e5ef7, _0x1c3fba) : _0x4e2582[_0x3eba1e(0x8e)](_0x1e5ef7, _0x1c3fba, _0x1e5ef7, _0x1c3fba);
    });
    const _0x5352eb = new THREE[(_0x483b57(0xb5))](_0x4e2582, {
      'depth': 0x3,
      'bevelEnabled': ![]
    }),
      _0x5f412c = new THREE[(_0x483b57(0x97))]({
        'color': _0x483b57(0xa5),
        'specular': _0x483b57(0xa5),
        'skinning': !![],
        'side': THREE['DoubleSide']
      }),
      _0x405ae2 = new THREE['MeshBasicMaterial']({
        'color': 0x8bfb,
        'transparent': !![],
        'opacity': 0x1,
        'side': THREE[_0x483b57(0xb3)]
      }),
      _0x16c9dc = new THREE[(_0x483b57(0xac))](_0x5352eb, [_0x5f412c, _0x405ae2]);
    return _0x5703ea && (_0x16c9dc[_0x483b57(0xaa)] = _0x5703ea), _0x16c9dc[_0x483b57(0xa7)]['x'] = -Math['PI'] * 0.5, _0x16c9dc;
  }
}
export default ThreejsGuangxiMap;
